using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.BLL;
using OgilvyOne.Model;
using System.Collections;
using System.Web;

namespace OgilvyOne.ProcessFlow
{
    public class LinkController
    {
        // Methods
        public bool DeleteLink(int id)
        {
            Link link = new Link();
            return link.DeleteLink(id);
        }

        public bool DeleteMenuLink(int id)
        {
            Link link = new Link();
            return link.DeleteMenuLink(id);
        }

        public IList GetLink()
        {
            Link link = new Link();
            return link.GetLink();
        }

        public LinkInfo GetLinkInfo(int id)
        {
            Link link = new Link();
            return link.GetLinkInfo(id);
        }

        public bool InsertLink(LinkInfo info)
        {
            Link link = new Link();
            return link.InsertLink(info);
        }

        public bool InsertMenuLink(LinkInfo link)
        {
            Link link2 = new Link();
            return link2.InsertMenuLink(link);
        }

        public bool UpdateLink(LinkInfo info)
        {
            Link link = new Link();
            return link.UpdateLink(info);
        }

        public bool UpdateMenuLink(LinkInfo linkinfo)
        {
            Link link = new Link();
            return link.UpdateMenuLink(linkinfo);
        }

    }
}
